package cn.tedu.datamanager.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Product {
    private Integer id;
    private String title;
    private String url;
    private Double price;
    private Double old_price;
    private Integer sale_count;
    private Integer num;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date day;
    private String overdue;
    private String server_id;

    public Product() {
    }

    public Product(Integer id, String title, String url, Double price, Double old_price, Integer sale_count, Integer num, Date day, String overdue, String server_id) {
        this.id = id;
        this.title = title;
        this.url = url;
        this.price = price;
        this.old_price = old_price;
        this.sale_count = sale_count;
        this.num = num;
        this.day = day;
        this.overdue = overdue;
        this.server_id = server_id;
    }


    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", price=" + price +
                ", oldPrice=" + old_price +
                ", saleCount=" + sale_count +
                ", num=" + num +
                ", day=" + day +
                ", overdue='" + overdue + '\'' +
                ", serverId=" + server_id +
                '}';
    }


    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return url
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取
     * @return price
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return old_price
     */
    public Double getOld_price() {
        return old_price;
    }

    /**
     * 设置
     * @param old_price
     */
    public void setOld_price(Double old_price) {
        this.old_price = old_price;
    }

    /**
     * 获取
     * @return sale_count
     */
    public Integer getSale_count() {
        return sale_count;
    }

    /**
     * 设置
     * @param sale_count
     */
    public void setSale_count(Integer sale_count) {
        this.sale_count = sale_count;
    }

    /**
     * 获取
     * @return num
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 获取
     * @return day
     */
    public Date getDay() {
        return day;
    }

    /**
     * 设置
     * @param day
     */
    public void setDay(Date day) {
        this.day = day;
    }

    /**
     * 获取
     * @return overdue
     */
    public String getOverdue() {
        return overdue;
    }

    /**
     * 设置
     * @param overdue
     */
    public void setOverdue(String overdue) {
        this.overdue = overdue;
    }

    /**
     * 获取
     * @return server_id
     */
    public String getServer_id() {
        return server_id;
    }

    /**
     * 设置
     * @param server_id
     */
    public void setServer_id(String server_id) {
        this.server_id = server_id;
    }
}
